import {
    createRouter,
    createWebHashHistory,
} from 'vue-router';
import Layout from '../components/HelloWorld.vue'

const routes = [
    {
        //路由初始指向
        path: '/',
        name: 'Login',
        component:()=>import('../assets/login/index.vue'),
    },
    {
        path: '/hello',
        name: 'HelloWorld',
        component:()=>import('../components/HelloWorld.vue'),
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
});
export default router;
